package huang.jan07.Co4;

public class SubCar extends Car {
	int price;
	int speed;
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	void  speedChange(int newSpeed){
		speed=newSpeed;
	}
}
